package com.hutao.manage.mapper;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import com.hutao.manage.pojo.MedicalResourcePic;

public interface MedicalResourcePicMapper {


    int deleteByPrimaryKey(Integer id);

    int insert(MedicalResourcePic record);

    int insertSelective(MedicalResourcePic record);

    MedicalResourcePic selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(MedicalResourcePic record);

    int updateByPrimaryKey(MedicalResourcePic record);
    
    MedicalResourcePic selectByFirstGuidAndFileHash(@Param("firstGuid")String firstGuid,@Param("fileHash")String fileHash);
    
    List<Map<String,Object>> getMedResourceByFirstLevelGuid(@Param("firstLevelGuid") String firstLevelGuid);
    
    int deleteByMedicalResourceId(Integer medicalResourceId);
    
}